package com.ruoyi.driver.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.driver.mapper.DriverOrderOperationMapper;
import com.ruoyi.driver.domain.DriverOrderOperation;
import com.ruoyi.driver.service.IDriverOrderOperationService;

/**
 * 司机接单/拒单操作记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
@Service
public class DriverOrderOperationServiceImpl implements IDriverOrderOperationService 
{
    @Autowired
    private DriverOrderOperationMapper driverOrderOperationMapper;

    /**
     * 查询司机接单/拒单操作记录
     * 
     * @param id 司机接单/拒单操作记录主键
     * @return 司机接单/拒单操作记录
     */
    @Override
    public DriverOrderOperation selectDriverOrderOperationById(String id)
    {
        return driverOrderOperationMapper.selectDriverOrderOperationById(id);
    }

    /**
     * 查询司机接单/拒单操作记录列表
     * 
     * @param driverOrderOperation 司机接单/拒单操作记录
     * @return 司机接单/拒单操作记录
     */
    @Override
    public List<DriverOrderOperation> selectDriverOrderOperationList(DriverOrderOperation driverOrderOperation)
    {
        return driverOrderOperationMapper.selectDriverOrderOperationList(driverOrderOperation);
    }

    /**
     * 新增司机接单/拒单操作记录
     * 
     * @param driverOrderOperation 司机接单/拒单操作记录
     * @return 结果
     */
    @Override
    public int insertDriverOrderOperation(DriverOrderOperation driverOrderOperation)
    {
        return driverOrderOperationMapper.insertDriverOrderOperation(driverOrderOperation);
    }

    /**
     * 修改司机接单/拒单操作记录
     * 
     * @param driverOrderOperation 司机接单/拒单操作记录
     * @return 结果
     */
    @Override
    public int updateDriverOrderOperation(DriverOrderOperation driverOrderOperation)
    {
        return driverOrderOperationMapper.updateDriverOrderOperation(driverOrderOperation);
    }

    /**
     * 批量删除司机接单/拒单操作记录
     * 
     * @param ids 需要删除的司机接单/拒单操作记录主键
     * @return 结果
     */
    @Override
    public int deleteDriverOrderOperationByIds(String[] ids)
    {
        return driverOrderOperationMapper.deleteDriverOrderOperationByIds(ids);
    }

    /**
     * 删除司机接单/拒单操作记录信息
     * 
     * @param id 司机接单/拒单操作记录主键
     * @return 结果
     */
    @Override
    public int deleteDriverOrderOperationById(String id)
    {
        return driverOrderOperationMapper.deleteDriverOrderOperationById(id);
    }
}
